package com.liufeng.test.spring.util;


import org.apache.logging.log4j.ThreadContext;

public class LogUtil {

    public static final String KEY_USER = "user";

    public static void setUser(String userid) {


        // 把用户信息放到log4j2
        ThreadContext.put(KEY_USER, userid);
    }
}
